
<table class="table table-striped">

    <?php echo $this->Html->tableHeaders(array($this->Paginator->sort('nombre', 'Nombre'), 'Modificar')); ?>

    <?php foreach ($rubros as $rubro): ?>
        <tr>
            <td><?php echo $this->Html->link('<i class="icon-share-alt"></i> ' . $rubro['Rubro']['nombre'], array('action' => 'view', $rubro['Rubro']['id']), array('escape' => false, 'title' => 'Ver Detalles')); ?></td>
            <td>
                <?php
                echo $this->Html->link('<i class="icon-pencil icon-white"></i>', array('action' => 'edit', $rubro['Rubro']['id']), array('class' => 'btn btn-primary', 'escape' => false, 'title' => "Editar"));
                echo " ";
                echo $this->Form->postLink('<i class="icon-trash icon-white"></i>', array('action' => 'delete', $rubro['Rubro']['id']), array('confirm' => 'Esta seguro que desea eliminar el rubro?', 'class' => 'btn btn-primary', 'escape' => false, 'title' => "Eliminar"));
                ?>
            </td>
        </tr>
<?php endforeach; ?>

</table>